/*
* $Id: isr.c,v 1.2 2007/10/30 06:17:16 sunny Exp $
*/
/*******************************************************************************

       UBEC (Uniband Electronic Corp.)

       Project: U-NET01, Ubiquitous network platform

       File: isr.c

       Version: 0.2.3

       Usage: Interrupt Functions

       Platform: U-NET01 DK with Keil 8051 C compiler

       Reference:

               Silicon Laboratories: C8051F124, C8051F340

               UBEC: UZ2400, UZ2410

       Note :

               Copyright (C) 2007 Uniband Electronic Corporation, All rights reserved

********************************************************************************/
#include "unet.h"

extern UNET_SYS UnetSys;

__interrupt void uz2400_isr(void);
__interrupt void rs232_rx_usart1(void);
__interrupt void rs232_tx_usart1(void);


#pragma vector=PORT1_VECTOR
__interrupt void uz2400_isr(void)
{
	P1IFG_bit.P1IFG_0=0;

	UzGetIntStatus();
}

#ifdef CONSOLE
#pragma vector=UART1RX_VECTOR
__interrupt void rs232_rx_usart1(void)
{
	uart_rx_isr();
}

#pragma vector=UART1TX_VECTOR
__interrupt void rs232_tx_usart1(void)
{
	uart_tx_isr();
}

#endif // #ifdef CONSOLE
